package com.yuyou.tas.lesson.mapper;

import com.yuyou.tas.service.api.lesson.dto.DtoBaseSSR;
import com.yuyou.tas.service.api.lesson.entity.BaseSectionSubjectRel;
import com.yuyou.tas.util.bean.Pagination;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface BaseSectionSubjectRelMapper {
    int deleteByPrimaryKey(Long id);

    int insert(BaseSectionSubjectRel record);

    BaseSectionSubjectRel selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(BaseSectionSubjectRel record);

    int findSSRCount(Pagination<DtoBaseSSR> queryPgn);

    List<DtoBaseSSR> findSSRPageList(Pagination<DtoBaseSSR> queryPgn);

    BaseSectionSubjectRel selectByPKandOrgan(@Param(value="id") Long id, @Param(value="authOrganizationId") Long authOrganizationId);

    List<BaseSectionSubjectRel> findSSRs(Map<String , Object> condition);
}